import React from 'react'

class App extends React.Component{
    componentDidMount(){
        this.refs.input.style.background = 'red'
    }
    render(){
        return <div>
            <input type="text" ref='input'/>
        </div>
    }
}

export default App